package com.tjbank.cssys.repository;


import com.tjbank.cssys.domain.CkOutsourcingCompanyRate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOutsourcingCompanyRateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CkOutsourcingCompanyRate record);

    int insertSelective(CkOutsourcingCompanyRate record);

    CkOutsourcingCompanyRate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CkOutsourcingCompanyRate record);

    int updateByPrimaryKey(CkOutsourcingCompanyRate record);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int batchInsert(List<CkOutsourcingCompanyRate> datas);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int setDelete(Map<String,Object> params);
}